package com.ljtxxhwj.myblob.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.List;


@Data
//@NoArgsConstructor
public class Article implements Serializable {
    Integer articleId;
    User user;
    Integer userId;
    ArticleKind articleKind;
    Integer  articleKindId;
    String articleTitle;
    String articleContent;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss" ,timezone = "GMT+8")
    Timestamp articleDate;
    Integer articleSee;
    List<ArticleTag>articleTag;
    String userName;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss" ,timezone = "GMT+8")
    Timestamp likeDate;

}
